Forms

HTML forms are used to collect user input. The <form> element defines an HTML form.


HTML forms contain form elements. Form elements are different types of input elements, checkboxes, radio buttons, submit buttons,etc.


<input> element

The input element can take various types of inputs like text, radio button,check boxes, submit buttons depending on the type attribute


The text attribute defines a text-field for normal text input


Radio buttons let a user select one out of the given choices


Submit button defines a button for submitting a form to a form-handler


To be submitted correctly, each input field must have a name attribute.




<select> element

The select element defines a dropdown list of items to choose from. The <option> element within <select> is used to specify the items in the list.


<button> element

This creates a clickable button